/**
 * <p>Copyright (c) 2017 深圳市鹏途交通科技有限公司 </p>
 * <p>				   All right reserved. 		     </p>
 * 
 * <p>项目名称 ： 	深圳市国省检日常化监管系统         </p>
 * <p>创建者   :	hey 
 * 
 * <p>描   述  :   GovernSpeed.java for com.pengtu.gsj.entity.lzgl    </p>
 * 
 * <p>最后修改 : $: Sep 13, 2017-9:41:30 AM v 1.0.0	 hey   $ </p>
 * 
*/

package com.pengtu.gsj.entity.lzgl;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.pengtu.gsj.entity.app.Attachment;
import com.pengtu.gsj.entity.base.IdEntity;

/**
 * 
 * GovernSpeed
 * 
 * Sep 13, 2017 9:41:30 AM
 * 
 * @version 1.0.0
 * 
 */

@Entity
@Table(name="T_LZ_GOVERNSPEED")
public class GovernSpeed extends IdEntity{

	private static final long serialVersionUID = 5752273999982102143L;
	
	private String testYear;						//检查时间
	private String stationName;						//检测站名称
	private String stationPlace;					//检测站所在区县
	private String regionalCollaboration;			//是否建立区域协作机制
	private String multisectoralCollaboration;		//是否建立多部门协作机制
	
	private String manageStandard;					//管理是否规范
	private String functionLayout;					//功能布局是否合理
	private String informPublic;					//信息是否公布
	private String identifyUnified;					//标识是否统一
	
	private Integer sumCar;							//路段货车交通量
	private Integer detectionCar;					//检测车辆数
	private Integer overrunCar;						//超限车辆数
	private Double enteringPate;					//车辆信息录入比例
	
	private String joinNetType;						//超限数据联网类型
	
	private String remark;			
	
	private Integer bulletinNumber;     //检测文件数
	private List<Attachment> attachments;
	
	@Column(name = "TESTYEAR")
	public String getTestYear() {
		return testYear;
	}
	public void setTestYear(String testYear) {
		this.testYear = testYear;
	}
	@Column(name = "STATIONNAME")
	public String getStationName() {
		return stationName;
	}
	public void setStationName(String stationName) {
		this.stationName = stationName;
	}
	@Column(name = "STATIONPLACE")
	public String getStationPlace() {
		return stationPlace;
	}
	public void setStationPlace(String stationPlace) {
		this.stationPlace = stationPlace;
	}
	@Column(name = "REGIONALCOLLABORATION")
	public String getRegionalCollaboration() {
		return regionalCollaboration;
	}
	public void setRegionalCollaboration(String regionalCollaboration) {
		this.regionalCollaboration = regionalCollaboration;
	}
	@Column(name = "MULTISECTORALCOLLABORATION")
	public String getMultisectoralCollaboration() {
		return multisectoralCollaboration;
	}
	public void setMultisectoralCollaboration(String multisectoralCollaboration) {
		this.multisectoralCollaboration = multisectoralCollaboration;
	}
	@Column(name = "MANAGESTANDARD")
	public String getManageStandard() {
		return manageStandard;
	}
	public void setManageStandard(String manageStandard) {
		this.manageStandard = manageStandard;
	}
	@Column(name = "FUNCTIONLAYOUT")
	public String getFunctionLayout() {
		return functionLayout;
	}
	public void setFunctionLayout(String functionLayout) {
		this.functionLayout = functionLayout;
	}
	@Column(name = "INFORMPUBLIC")
	public String getInformPublic() {
		return informPublic;
	}
	public void setInformPublic(String informPublic) {
		this.informPublic = informPublic;
	}
	@Column(name = "IDENTIFYUNIFIED")
	public String getIdentifyUnified() {
		return identifyUnified;
	}
	public void setIdentifyUnified(String identifyUnified) {
		this.identifyUnified = identifyUnified;
	}
	@Column(name = "SUMCAR")
	public Integer getSumCar() {
		return sumCar;
	}
	public void setSumCar(Integer sumCar) {
		this.sumCar = sumCar;
	}
	@Column(name = "DETECTIONCAR")
	public Integer getDetectionCar() {
		return detectionCar;
	}
	public void setDetectionCar(Integer detectionCar) {
		this.detectionCar = detectionCar;
	}
	@Column(name = "OVERRUNCAR")
	public Integer getOverrunCar() {
		return overrunCar;
	}
	public void setOverrunCar(Integer overrunCar) {
		this.overrunCar = overrunCar;
	}
	@Column(name = "ENTERINGPATE")
	public Double getEnteringPate() {
		return enteringPate;
	}
	public void setEnteringPate(Double enteringPate) {
		this.enteringPate = enteringPate;
	}
	@Column(name = "JOINNETTYPE")
	public String getJoinNetType() {
		return joinNetType;
	}
	public void setJoinNetType(String joinNetType) {
		this.joinNetType = joinNetType;
	}
	@Column(name = "REMARK")
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	
	@Transient
	public Integer getBulletinNumber() {
		bulletinNumber = attachments.size();
		return bulletinNumber;
	}

	public void setBulletinNumber(Integer bulletinNumber) {
		this.bulletinNumber = bulletinNumber;
	}

	@OneToMany(fetch = FetchType.LAZY)
	@JoinColumn(name = "PARTID")
	public List<Attachment> getAttachments() {
		return attachments;
	}

	public void setAttachments(List<Attachment> attachments) {
		this.attachments = attachments;
	}
}
